package com.len.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.core.keygen.KeyGenerators;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName(value = "sys_user_depart")
public class SysUserDepart implements Serializable {
    /**
     * 用户id
     */
    @Id(keyType = KeyType.Generator,value = KeyGenerators.snowFlakeId)
    private String userId;

    /**
     * 部门id
     */
    @Id(keyType = KeyType.Generator,value = KeyGenerators.snowFlakeId)
    private String departId;
}